class Person <T>{
    constructor(public name: string, public age: T) {}
}

new Person('小米', 2)